package com.myCommunity.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myCommunity.biz.UserBiz;
import com.myCommunity.dao.UserDao;
import com.myCommunity.dao.impl.UserDaoImpl;
import com.myCommunity.entity.User;
@Service("userBiz")
public class UserBizImpl implements UserBiz{
	@Autowired
	private UserDao userDao;
	public User login(String userName, String passWord) {
		return userDao.login(userName, passWord);
	}

	public void register(User user) {
		userDao.register(user);
	}

}
